package org.elanfox.cloud.common.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * @author allan
 * @version 1.0.0
 * @date 2020/9/1
 */
@AllArgsConstructor
@Getter
public enum CommonCode implements IResultCode {
    NO_PERMISSION("3000", "资源访问无权限"),
    AUTHORIZE_FAILED("3001", "鉴权失败"),
    TOKEN_EXPIRED("3002", "Token已过期"),
    TOKEN_VERIFY_FAILED("3003", "Token校验失败"),
    OLD_PASS_FAILED("3004", "旧密码校验失败"),
    NO_DATA("4000", "数据不存在"),
    SYSTEM_EXCEPTION("5000", "系统异常"),
    BIZ_EXCEPTION("6000", "业务异常");

    private final String code;
    private final String msg;
}
